files=(
'bin/etcd/etcd'
'bin/etcd/etcdctl'
'bin/etcd/etcdutl'
'tls/ca.pem'
'tls/etcd.pem'
'tls/etcd-key.pem'
)

etcd_inventory_hostnames=$1
for item in ${etcd_inventory_hostnames}; do
  files+=("etc/${item}/etcd.conf.yaml")
  files+=("etc/${item}/etcd.service")
done

#tree
for item in ${files[@]}; do
  if [ -f ${item} ];
    then echo "+ ${item}";
    else echo "- ${item} not found"; exit 1;
  fi;
done;


